package com.hc.model.code02.test10;

/**
 * @version v1.0
 * @ClassName: CoffeeDessertTest
 * @Description: 案例测试
 * @Author: HC
 */
public class CoffeeDessertTest {

    public static void main(String[] args) {
        DessertFactory df = new AmericanDessertFactory();
        Coffee coffee = df.createCoffee();
        Dessert dessert = df.createDessert();
        System.out.println(coffee.getName());
        dessert.show();
    }
}
